

import java.util.ArrayList;

public class Course {
	
	private ArrayList<Student> arrayStudents;
	private String course;
	private String dateOfExam;
	private String timeOfExam;
	private int lengthOfExam;
	
	public Course(String course, String dateOfTime, String timeOfExam) {
		this.course = course;
		this.dateOfExam = dateOfTime;
		this.timeOfExam = timeOfExam;
		this.lengthOfExam = -1;
	}
	
	void setStudents(ArrayList<Student> arrayStudent){
		this.arrayStudents = arrayStudent;
	}
	
	void setCourseTitle(String title){
		this.course = title;
	}
	
	public String getTitle(){
		return this.course;
	}
	
	public String getDateOfExam(){
		return this.dateOfExam;
	}
	
	public String getTimeOfExam(){
		return this.timeOfExam;
	}
	
	void setLengthOfExam(int length){
		this.lengthOfExam = length;
	}
	
	public int getLengthOfExam(){
		return this.lengthOfExam;
	}
	
	public ArrayList<Student> getStudentList(){
		return arrayStudents;
	}
}
